<wx:page
 class="x-page"
 id="page"
 style="background-color:#f2edf5;padding-left:5px;padding-right:5px"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<wx:model
 id="model"
 style="left:0px;top:0px;height:auto;position:absolute">
<wx:wxApi
 id="wxapi"
 label="通用接口"/>
<wx:commonOperation
 id="commonOperation"
 label="操作扩展"
 xmlns:wx="$UI/wxsys/comps"/>
<param
 id="default0"
 label="帮忙请求ID"
 name="param0"
 type="String"
 xid="xid_1552192086494_1"/>
<wx:restData
 _created="true"
 auto="load"
 className="/main/bangbangm"
 id="restData"
 label="帮帮忙"
 url="/dbrest">
<join
 id="default14"
 leftTable="/main/bangbangm"
 rightTable="/main/yonghufjxx"
 xmlns="http://www.w3.org/1999/xhtml">
<on
 fn="eq"
 id="default15"
 leftField="ffaqirid"
 leftFieldLabel="发起人ID"
 rightField="fyonghuid"
 rightFieldLabel="用户ID"/>
<column
 field="fxinyongf"
 id="default16"
 label="发起人ID-信用分"
 name="ffaqirid_yonghufjxx_fxinyongf"/>
<column
 field="ftouxiang"
 id="default17"
 label="发起人ID-头像"
 name="ffaqirid_yonghufjxx_ftouxiang"/>
<column
 field="fxingming"
 id="default18"
 label="发起人ID-姓名"
 name="ffaqirid_yonghufjxx_fxingming"/>
<column
 field="fsushem"
 id="default19"
 label="发起人ID-宿舍名"
 name="ffaqirid_yonghufjxx_fsushem"/>
<column
 field="fzuohao"
 id="default20"
 label="发起人ID-座号"
 name="ffaqirid_yonghufjxx_fzuohao"/></join>
<join
 id="default21"
 leftTable="/main/bangbangm"
 rightTable="/main/yonghufjxx"
 xmlns="http://www.w3.org/1999/xhtml">
<on
 fn="eq"
 id="default22"
 leftField="ffuwuzid"
 leftFieldLabel="服务者ID"
 rightField="fyonghuid"
 rightFieldLabel="用户ID"/>
<column
 field="fxinyongf"
 id="default23"
 label="服务者ID-信用分"
 name="ffuwuzid_yonghufjxx_fxinyongf"/>
<column
 field="ftouxiang"
 id="default24"
 label="服务者ID-头像"
 name="ffuwuzid_yonghufjxx_ftouxiang"/>
<column
 field="fxingming"
 id="default25"
 label="服务者ID-姓名"
 name="ffuwuzid_yonghufjxx_fxingming"/>
<column
 field="fsushem"
 id="default26"
 label="服务者ID-宿舍名"
 name="ffuwuzid_yonghufjxx_fsushem"/>
<column
 field="fzuohao"
 id="default27"
 label="服务者ID-座号"
 name="ffuwuzid_yonghufjxx_fzuohao"/></join>
<filter
 _filter_label="主键 等于 params.param0"
 id="restDatafilter"
 name="_system1_">eq('fid',params.param0)</filter></wx:restData>
<wx:tableData
 auto="load"
 className="/main/linshisj"
 id="tableData"
 label="临时数据"/>
<wx:serviceRequest
 class="hide"
 id="serviceRequest"
 label="注册用户聊天列表"
 service="/main/tianjiadqyhfjxx/zhuceyhltlb"/>
<wx:serviceRequest
 class="hide"
 id="serviceRequest1"
 label="请求接活"
 on:success="[{&quot;operation&quot;:&quot;wxapi.showToast&quot;,&quot;args&quot;:{&quot;title&quot;:&quot;js:$event.data&quot;}},{&quot;operation&quot;:&quot;commonOperation.close&quot;}]"
 service="/main/gengxinxyf/qingqiujh"/></wx:model>
<wx:loading
 class="weui-loader-full {{$state.loadingNum &lt;= 0 ?'weui-loader-hide':''}}"
 style="z-index: 10001;"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<view
 class="ball-scale-ripple-multiple">
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/></view></wx:loading>
<wx:inVisibleCompContainer
 id="inVisibleCompContainer">
<wx:user
 appPath="$UI/main"
 autoLoadUserInfo="true"
 autoLogin="true"
 id="user"
 useOpenid="false">
<wx:restData
 _created="true"
 className="uaa/user"
 columns="id,name,email,userName,phone,avatarUrl,description,data4,data5,data9,data15,data17,data2,data3,data6"
 id="restData1"
 label="用户信息"
 owner="user"
 xmlns:wx="$UI/wxsys/comps">
<column
 id="default9"
 label="昵称"
 name="nickName"
 type="String"/>
<column
 id="default10"
 label="群组"
 name="group"
 type="Array"/>
<column
 id="default11"
 label="是否登录"
 name="isLogined"
 type="Boolean"/>
<rule
 id="rule">
<readonly
 id="default12">
<expr
 id="default13">true</expr></readonly></rule></wx:restData></wx:user></wx:inVisibleCompContainer>
<wx:row
 bind:hidden="wx.Util.iif(restData.current.ftupian==null,true,false)"
 class="x-row"
 id="row"
 label="大头图">
<wx:col
 class="x-col"
 id="col"/>
<wx:col
 class="x-col"
 id="col1"
 style="padding-top:10px">
<wx:image
 bind:src="restData.current.ftupian"
 class="weui-img weui-img_circle center-block"
 id="image"
 mode="widthFix"
 style="width:128px;height:128px"/></wx:col>
<wx:col
 class="x-col"
 id="col2"/></wx:row>
<view
 id="view"
 label="求助信息">
<wx:text
 bind:text="restData.current.fzhuti"
 id="text1"
 style="display:block;font-weight: bold;transform:rotate(0deg);font-size:28px;color: #9c28b1">主题</wx:text>
<wx:text
 bind:text="&quot;￥&quot; + restData.current.fchoujin"
 id="text12"
 label="酬金"
 style="display:block;text-align: right;font-size:20px;color:#fa6868"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:wx="$UI/wxsys/comps">酬金</wx:text>
<wx:text
 bind:text="restData.current.fmiaoshu"
 id="text2"
 style="display:block;font-size:18px;font-style: italic">描述</wx:text>
<view
 bind:hidden="wx.Util.iif(restData.current.ftupian==null,true,false)"
 id="view1">
<wx:attachmentImage
 bind:ref="restData.current.ftupian"
 class="{{$state.count == 1?'weui-uploader__img':''}}"
 compDisabled="true"
 id="attachmentImage"
 name="图片"
 showBorder="true"
 sizeType="true"
 statics="false"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:wx="$UI/wxsys/comps">
<view
 class="weui-cells"
 id="view2"
 wx:if="{{$state.count  &gt; 1&amp;&amp; $state.commonMode == false}}">
<view
 class="weui-cell"
 id="view3">
<view
 class="weui-cell__bd"
 id="view4">
<view
 class="weui-uploader"
 id="view5">
<view
 class="weui-uploader__hd"
 id="view6">
<view
 class="weui-uploader__title"
 id="view7">{{$state.name}}</view>
<view
 class="weui-uploader__info"
 id="view8">{{$state.attachments.length}} / {{$state.count}}</view></view>
<view
 class="weui-uploader__bd"
 id="view9">
<block
 id="default1"
 wx:for-item="_attachmentItem"
 wx:for="{{$state.attachments}}">
<view
 class="weui-uploader__file {{_attachmentItem.previewImageUrl == '//:0'?'weui-uploader__file_status':''}} {{$state.autoLayout}}"
 data-store-file-name="{{_attachmentItem.storeFileName}}"
 id="view10"
 style="position:relative;margin:.4em .4em 0 0;"
 wx:if="{{_attachmentItem.documentType=='image'}}">
<image
 class="{{$state.largeImage?'weui-uploader__large_img':'weui-uploader__img'}}"
 data-store-file-name="{{_attachmentItem.storeFileName}}"
 id="image1"
 mode="{{$state.imageMode}}"
 on:tap="$comp.previewOrDeleteImage"
 src="{{_attachmentItem.previewImageUrl}}"/>
<view
 class="weui-badge"
 data-store-file-name="{{_attachmentItem.storeFileName}}"
 id="view11"
 on:tap="$comp.deleteImage"
 style="position: absolute;top: -.4em;right: -.4em;"
 wx:if="{{$state.deleBox}}">X</view>
<view
 class="weui-uploader__file-content"
 id="view12"
 wx:if="{{_attachmentItem.percent &lt; 100}}">{{_attachmentItem.percent}}%</view></view>
<view
 class="weui-uploader__file {{_attachmentItem.previewImageUrl == '//:0'?'weui-uploader__file_status':''}}  {{$state.autoLayout}}"
 data-store-file-name="{{_attachmentItem.storeFileName}}"
 id="view13"
 style="position:relative;margin:.4em .4em 0 0;"
 wx:elif="{{_attachmentItem.documentType=='video'}}">
<video
 bind:id="'myVideo'+_attachmentItem.storeFileName"
 class="weui-uploader__img"
 controls="{{true}}"
 direction="0"
 id="default2"
 on:fullscreenchange="$comp.screenchange"
 on:play="$comp.playVideoFullScreen"
 src="{{_attachmentItem.previewImageUrl}}"/>
<view
 class="weui-badge"
 data-store-file-name="{{_attachmentItem.storeFileName}}"
 id="view14"
 on:tap="$comp.deleteVideo"
 style="position: absolute;top: -.5em;right: -1em;"
 wx:if="{{$state.deleBox}}">X</view>
<view
 class="weui-uploader__file-content"
 id="view15"
 wx:if="{{_attachmentItem.percent &lt; 100}}">{{_attachmentItem.percent}}%</view></view>
<view
 class="weui-uploader__file {{_attachmentItem.previewImageUrl == '//:0'?'weui-uploader__file_status':''}}"
 data-store-file-name="{{_attachmentItem.storeFileName}}"
 id="view16"
 style="position:relative;margin:.4em .4em 0 0;"
 wx:elif="{{_attachmentItem.documentType=='record'}}">
<view
 class="recordModel {{$state.largeImage?'weui-uploader__large_img':'weui-uploader__img'}}"
 id="view17"
 on:tap="$comp.playVoiceAnimate">
<image
 class="recordImg"
 data-audioID="{{_attachmentItem.audioID}}"
 data-audioUrl="{{_attachmentItem.previewImageUrl}}"
 id="image2"
 src=""/>
<image
 class="recordSty"
 id="image3"
 src=""
 wx:if="{{$state.playPic== _attachmentItem.audioID+2}}"/>
<image
 class="recordSty"
 id="image4"
 src=""
 wx:if="{{$state.playPic== _attachmentItem.audioID+3}}"/>
<image
 class="recordSty"
 id="image5"
 src=""
 wx:if="{{$state.playPic== _attachmentItem.audioID+4}}"/>
<image
 class="recordSty"
 id="image6"
 src=""
 wx:if="{{$state.playPic== _attachmentItem.audioID+5}}"/>
<view
 class="second"
 id="view18"
 wx:if="{{_attachmentItem.duration}}">
<text
 id="default3">{{_attachmentItem.duration}}''</text></view></view>
<view
 class="weui-badge"
 data-store-file-name="{{_attachmentItem.storeFileName}}"
 id="view19"
 on:tap="$comp.deleteVideo"
 wx:if="{{$state.deleBox}}">X</view>
<view
 class="weui-uploader__file-content"
 id="view20"
 wx:if="{{_attachmentItem.percent &lt; 100}}">{{_attachmentItem.percent}}%</view></view></block>
<view
 class="{{$state.largeImage?'weui-uploader__large_input-box':'weui-uploader__input-box'}}"
 id="view21"
 style="margin-top:.4em;display:none"
 wx:if="{{$state.mode == 'upload' &amp;&amp; ($state.attachments.length &lt; $state.count)}}">
<view
 class="weui-uploader__input"
 id="view22"
 on:tap="$comp.chooseImage"
 style="padding-top:.4em"/></view></view></view></view></view></view>
<block
 id="default4"
 wx:if="{{$state.count == 1 &amp;&amp;  $state.commonMode == false}}">
<view
 class="{{$state.attachments[0]?'simpleImage':'weui-uploader__input-box'}}"
 id="view23"
 wx:if="{{$state.attachments[0].documentType !='video'}}">
<image
 class="{{$state.attachments[0].previewImageUrl == ''?'weui-uploader__file_status':''}}"
 id="image7"
 mode="{{$state.imageMode}}"
 on:tap="$comp.replaceImage"
 src="{{$state.attachments[0].previewImageUrl}}"
 style="width:100%;height:100%"/></view>
<view
 class="{{$state.attachments[0]?'simpleImage':'weui-uploader__input-box'}}"
 id="view24"
 wx:if="{{$state.attachments[0].documentType =='video'}}">
<video
 bind:id="'onlyVideo'+$state.attachments[0].storeFileName"
 class="simpleVideo"
 controls="{{true}}"
 direction="0"
 id="default5"
 on:fullscreenchange="$comp.screenchange"
 on:play="$comp.playVideoFullScreen"
 src="{{$state.attachments[0].previewImageUrl}}"/></view></block>
<view
 class="weui-uploader__img"
 id="view25"
 wx:if="{{$state.commonMode}}">
<image
 id="image8"
 mode="{{$state.imageMode}}"
 on:tap="$comp.replaceImage"
 src="{{$state.commonModeImg ? $state.commonModeImg: $state.attachments[0].previewImageUrl}}"
 style="height:100%;width:100%"/></view>
<view
 class="{{$state.chooseRecord?'popUpView':'popViewHigh'}}"
 id="view26">
<view
 class="closePopUp"
 id="view27"
 on:tap="$comp.closeModel">
<text
 id="default6">X</text></view>
<view
 class="contentView"
 id="view28">
<view
 class="talkView"
 id="view29">
<text
 id="default7">{{$state.recordFont}}</text></view>
<view
 class="recordView"
 id="view30"
 on:touchend="$comp.speakTouchUp"
 on:touchstart="$comp.speakTouchDown"
 wx:if="{{$state.recordMode == 'touch'}}">
<image
 class="record"
 id="image9"
 src=""/></view>
<view
 class="recordView"
 id="view31"
 on:tap="$comp.startAndendRecord"
 wx:if="{{$state.recordMode == 'click'}}">
<image
 class="record"
 id="image10"
 src=""/></view></view></view>
<audio
 controls="{{false}}"
 id="myAudio"
 on:ended="$comp.audioEnd"
 style="position:absolute"/>
<block
 id="default8">
<view
 class="speak-auto"
 id="view32"
 wx:if="{{$state.isSpeaking}}">
<view
 class="speak-style"
 id="view33">
<image
 class="sound-style"
 id="image11"
 src=""/>
<image
 class="sound-style"
 id="image12"
 src=""
 wx:if="{{$state.pictures==2}}"/>
<image
 class="sound-style"
 id="image13"
 src=""
 wx:if="{{$state.pictures==3}}"/>
<image
 class="sound-style"
 id="image14"
 src=""
 wx:if="{{$state.pictures==4}}"/>
<image
 class="sound-style"
 id="image15"
 src=""
 wx:if="{{$state.pictures==5}}"/></view></view></block></wx:attachmentImage></view>
<view
 bind:hidden="wx.Util.iif(restData.current.ffuwuzid!=&quot;&quot;,false,true)"
 id="view37"
 label="服务者信息"
 style="background-color:#eadbf2;margin-top:5px"
 xmlns:catch="http://www.wex5.com/wx/event/catch">
<wx:row
 class="x-row"
 id="row4"
 xmlns:wx="$UI/wxsys/comps">
<wx:col
 class="x-col"
 id="col11">
<wx:text
 id="text6">服务者</wx:text></wx:col>
<wx:col
 class="x-col"
 id="col12"/>
<wx:col
 class="x-col"
 id="col13"/></wx:row>
<wx:row
 class="x-row"
 id="row5"
 on:tap="{&quot;operation&quot;:&quot;wxapi.navigateTo&quot;,&quot;args&quot;:{&quot;url&quot;:&quot;$UI/main/bangbang_m/yonghu_fbdqz.w&quot;,&quot;params&quot;:&quot;js:{\&quot;param0\&quot;:restData.current.ffuwuzid}&quot;}}"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<wx:col
 class="x-col x-col-fixed"
 id="col14">
<wx:image
 bind:src="restData.current.ffuwuzid_yonghufjxx_ftouxiang"
 class="weui-img"
 id="image17"
 mode="scaleToFill"
 style="width:64px;height:64px;border-radius:5px;border:3px solid #CCCCCC"/></wx:col>
<wx:col
 class="x-col"
 id="col15">
<wx:text
 bind:text="restData.current.ffuwuzid_yonghufjxx_fxingming"
 id="text7"
 style="display:block">姓名</wx:text>
<wx:text
 bind:text="restData.current.ffuwuzid_yonghufjxx_fsushem + restData.current.ffuwuzid_yonghufjxx_fzuohao"
 id="text8"
 style="display:block">住址</wx:text>
<wx:text
 bind:text="&quot;信用分：&quot; + restData.current.ffuwuzid_yonghufjxx_fxinyongf"
 id="text9"
 style="display:block">信用分</wx:text></wx:col></wx:row>
<wx:row
 bind:hidden="wx.Util.iif(restData1.current.id==restData.current.ffaqirid,false,true)"
 class="x-row"
 id="row6"
 xmlns:wx="$UI/wxsys/comps">
<wx:col
 class="x-col"
 id="col16"/>
<wx:col
 class="x-col x-col-fixed"
 id="col17">
<wx:button
 class="wx-btn"
 id="button2"
 on:tap="{&quot;operation&quot;:&quot;serviceRequest.sendServiceRequest&quot;,&quot;args&quot;:{&quot;params&quot;:&quot;js:{\&quot;user2ID\&quot;:restData.current.ffuwuzid}&quot;}}"
 size="mini">
<wx:icon
 id="icon2"
 size="15"
 type="wx-btn-icon"/>
<view
 class="wx-btn-label"
 id="view38">联系</view></wx:button></wx:col>
<wx:col
 class="x-col x-col-fixed"
 id="col18">
<wx:button
 class="wx-btn"
 id="button3"
 on:tap="{&quot;operation&quot;:&quot;wxapi.navigateTo&quot;,&quot;args&quot;:{&quot;url&quot;:&quot;$UI/main/bangbang_m/fukuan_gdf.w&quot;,&quot;params&quot;:&quot;js:{\&quot;param0\&quot;:restData.current.ffuwuzid,\&quot;param1\&quot;:restData.current.fchoujin}&quot;}}"
 size="mini">
<wx:icon
 id="icon3"
 size="15"
 type="wx-btn-icon"/>
<view
 class="wx-btn-label"
 id="view39">付款</view></wx:button></wx:col></wx:row></view>
<view
 id="view34"
 label="发起人信息"
 style="margin-top:5px;background-color:#eadbf2"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on">
<wx:row
 class="x-row"
 id="row2">
<wx:col
 class="x-col"
 id="col6">
<wx:text
 id="text3">发起者</wx:text></wx:col>
<wx:col
 class="x-col"
 id="col7"/>
<wx:col
 class="x-col"
 id="col8"/></wx:row>
<wx:row
 class="x-row"
 id="row3"
 on:tap="[{&quot;operation&quot;:&quot;wxapi.navigateTo&quot;,&quot;args&quot;:{&quot;url&quot;:&quot;$UI/main/bangbang_m/yonghu_fbdqz.w&quot;,&quot;params&quot;:&quot;js:{\&quot;param0\&quot;:restData.current.ffaqirid}&quot;},&quot;cond&quot;:&quot;js:wx.Util.iif(restData.current.ffaqirid==restData1.current.id,false,true)&quot;},{&quot;operation&quot;:&quot;wxapi.navigateTo&quot;,&quot;args&quot;:{&quot;url&quot;:&quot;$UI/main/bangbang_m/woshen_qdfw.w&quot;},&quot;cond&quot;:&quot;js:wx.Util.iif(restData.current.ffaqirid==restData1.current.id,true,false)&quot;}]">
<wx:col
 class="x-col x-col-fixed"
 id="col9">
<wx:image
 bind:src="restData.current.ffaqirid_yonghufjxx_ftouxiang"
 class="weui-img"
 id="image16"
 mode="scaleToFill"
 style="width:64px;height:64px;border-radius:5px;border:3px solid #CCCCCC"/></wx:col>
<wx:col
 class="x-col"
 id="col10">
<wx:text
 bind:text="restData.current.ffaqirid_yonghufjxx_fxingming"
 id="text"
 style="display:block">姓名</wx:text>
<wx:text
 bind:text="restData.current.ffaqirid_yonghufjxx_fsushem + restData.current.ffaqirid_yonghufjxx_fzuohao"
 id="text4"
 style="display:block">住址</wx:text>
<wx:text
 bind:text="&quot;信用分：&quot; + restData.current.ffaqirid_yonghufjxx_fxinyongf"
 id="text5"
 style="display:block">信用分</wx:text></wx:col></wx:row>
<wx:row
 bind:hidden="wx.Util.iif(restData1.current.isLogined==false||restData1.current.id==restData.current.ffaqirid,true,false)"
 class="x-row"
 id="row1">
<wx:col
 class="x-col"
 id="col3"/>
<wx:col
 class="x-col x-col-fixed"
 id="col4">
<wx:button
 class="wx-btn"
 id="button"
 on:tap="{&quot;operation&quot;:&quot;serviceRequest.sendServiceRequest&quot;,&quot;args&quot;:{&quot;params&quot;:&quot;js:{\&quot;user2ID\&quot;:restData.current.ffaqirid}&quot;}}"
 size="mini">
<wx:icon
 id="icon"
 size="15"
 type="wx-btn-icon"/>
<view
 class="wx-btn-label"
 id="view35">联系</view></wx:button></wx:col>
<wx:col
 class="x-col x-col-fixed"
 id="col5">
<wx:button
 class="wx-btn"
 id="button1"
 on:tap="{&quot;operation&quot;:&quot;serviceRequest1.sendServiceRequest&quot;,&quot;args&quot;:{&quot;params&quot;:&quot;js:{\&quot;helperID\&quot;:params.param0}&quot;}}"
 size="mini">
<wx:icon
 id="icon1"
 size="15"
 type="wx-btn-icon"/>
<view
 class="wx-btn-label"
 id="view36">接活</view></wx:button></wx:col></wx:row></view></view></wx:page>___js___:import PageImpl from "$UI/wxsys/lib/base/pageImpl";var app = getApp();export default class IndexPage extends PageImpl {constructor(...args){super(...args);}}